//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.IO;
			using System;
			using System.Xml;
			
		#endregion
		
	public class Connection
	
	{
		
		#region Fields
			private const string appConfig = "config.txt";
		#endregion
		
		#region Constructors
		
			public Connection ()
			
			{
				return;
			}
			
		#endregion
		
		#region Methods
		
			public static string ConnectionString ()
			
			{
				Class theClass;
				string theString2;
//				string theString;
//				XmlDocument theXmlDocument;
//				XmlElement theXmlElement;
//				XmlNode theXmlNode;
				string theString3;
//				theString = Environment.GetFolderPath (System.Environment.SpecialFolder.System).ToString ();
//				if (File.Exists (string.Concat (theString, "/app.config")))
//				{
//					goto L_0024;
//				}
//				theString3 = ((string) null);
//				goto L_0073;
//				
//			L_0024:
//				
//				{
//				}
//				theXmlDocument = new XmlDocument ();
//				theXmlDocument.Load (string.Concat (theString, "/app.config"));
//				theXmlElement = theXmlDocument.DocumentElement;
//				theXmlNode = theXmlElement.SelectSingleNode ("//*[appSettings]");
//				theString2 = theXmlNode.InnerText.ToString ();
				theString2 = System.Configuration.ConfigurationSettings.AppSettings.Get("HT_DBConnectionString");
				theClass = new Class ();
				theString2 = theClass.Decrypt (theString2);
				theString3 = theString2;
				goto L_0073;
				
			L_0073:
				
				{
				}
				return theString3;
			}
			
		#endregion
	}
	
}

